package com.itcast.java.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 商品属性实体类
 *
 * @author xiaobai
 * @date 2021-06-27 19:31:58
 */
@Data
@TableName("pms_attr")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "PmsAttrEntity对象", description = "商品属性")
public class PmsAttrEntity implements Serializable{

private static final long serialVersionUID=1L;

        @ApiModelProperty(value = "属性id")
                @TableId(value = "attr_id", type = IdType.AUTO)
                private Long attrId;

        @ApiModelProperty(value = "属性名")
    @TableField("attr_name")
        private String attrName;

        @ApiModelProperty(value = "是否需要检索[0-不需要，1-需要]")
    @TableField("search_type")
        private Integer searchType;

        @ApiModelProperty(value = "属性图标")
    @TableField("icon")
        private String icon;

        @ApiModelProperty(value = "可选值列表[用逗号分隔]")
    @TableField("value_select")
        private String valueSelect;

        @ApiModelProperty(value = "属性类型[0-销售属性，1-基本属性，2-既是销售属性又是基本属性]")
    @TableField("attr_type")
        private Integer attrType;

        @ApiModelProperty(value = "启用状态[0 - 禁用，1 - 启用]")
    @TableField("enable")
        private Long enable;

        @ApiModelProperty(value = "所属分类")
    @TableField("catelog_id")
        private Long catelogId;

        @ApiModelProperty(value = "快速展示【是否展示在介绍上；0-否 1-是】，在sku中仍然可以调整")
    @TableField("show_desc")
        private Integer showDesc;

        }